<?php
require('bsp/client.php');

$bsp = new BspClient(INET_TYPE_IPV4, SOCK_TYPE_TCP, 'localhost', 9173, DATA_TYPE_PACKET);
if ($bsp->connect())
{
	$bsp->send_cmd(100, array('a' => 100, 'b' => 'Hello', 'c' => 3.14159, 'd' => array('aa' => -1), 'e' => array(1, 2, 3, 4, 5, 6, 7)));
	$data = $bsp->recv_data();

	print_r($data);
}
?>
